package com.jixiang.tracedata.model.common;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

import java.io.Serializable;

/**
 * @author quanbiao
 * @date 2018-08-28
 * 报文头节点
 */
@XStreamAlias("Hdr")
public class Hdr implements Serializable {

    private static final long serialVersionUID = -7938587981417081055L;

    /**
     * 报文版本
     */
    @XStreamAsAttribute()
    private String Ver;

    /**
     * 事件名，具体取值请参考事件定义
     */
    @XStreamAsAttribute()
    private String Event;

    /**
     * 子事件名，具体取值请参考事件定义
     */
    @XStreamAsAttribute()
    private String Subevent;

    /**
     * 事件发生前的值，具体取值请参考事件定义。
     */
    @XStreamAsAttribute()
    private String Newval;

    /**
     * 事件发生后的值，具体取值请参考事件定义。
     */
    @XStreamAsAttribute()
    private String Oldval;

    /**
     * 报文处理的时间
     * 格式：yyyyMMddHHmmss
     * 样例：20170922085857
     */
    @XStreamAsAttribute()
    private String Uptm;

    /**
     * 报文唯一标识，UUID
     * 样例：4c9b47c1-d3b3-4643-9139-3f88cc3939e5
     */
    @XStreamAsAttribute()
    private String Stamp;

    public String getVer() {
        return Ver;
    }

    public void setVer(String ver) {
        Ver = ver;
    }

    public String getEvent() {
        return Event;
    }

    public void setEvent(String event) {
        Event = event;
    }

    public String getSubevent() {
        return Subevent;
    }

    public void setSubevent(String subevent) {
        Subevent = subevent;
    }

    public String getNewval() {
        return Newval;
    }

    public void setNewval(String newval) {
        Newval = newval;
    }

    public String getOldval() {
        return Oldval;
    }

    public void setOldval(String oldval) {
        Oldval = oldval;
    }

    public String getUptm() {
        return Uptm;
    }

    public void setUptm(String uptm) {
        Uptm = uptm;
    }

    public String getStamp() {
        return Stamp;
    }

    public void setStamp(String stamp) {
        Stamp = stamp;
    }
}
